CC=gcc 
CFLAGS=-Wall


all: pramatrix.a pramatrix_test 

pramatrix_test:
	$(CC) $(CFLAGS) pramatrix_test.c -o pramatrix_test -L./ -lpramatrix  -lm

pramatrix.o:
	$(CC) $(CFLAGS) -c pramatrix.c pramatrix.h  -lm
pramatrix.a: pramatrix.o
	ar cr libpramatrix.a pramatrix.o

clean:
	rm -f pramatrix.o pramatrix_test.o libpramatrix.a pramatrix.c~ pramatrix.h~ Makefile~ pramatrix_test pramatrix.h.gch pramatrix_test.c~
